package com.gzj.environment.framework.annotation;


import com.gzj.environment.enums.common.PermissionLogicalEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @description: 鉴权的自定义注解
 * @author: tsing
 * @create: 2020-08-13 10:42
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface PermissionRequired {

    // 需要的权限代码
    String[] value() default "";

    // 权限代码之间的逻辑关系，取值为AND、OR
    PermissionLogicalEnum logical() default PermissionLogicalEnum.AND;
}
